import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import copy from 'rollup-plugin-copy'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    uni(),
    copy({
      // 复制wxcomponents
      targets: [
        {
          src: './src/subPackages/charts/wxcomponents',
          dest: './dist/build/mp-weixin/subPackages/charts'
        },
      ]
    })
  ],
})
